<?php

$date = new DateTime('today');

/*
if(isset($_GET['wk_cal_next'])) {
	$date->add(new DateInterval('P' . intval($_GET['wk_cal_next']  + 1) . 'W'));
	
} elseif(isset($_GET['wk_cal_prev'])) {
	$date->sub(new DateInterval('P1W'));
} else {
	print "this is the current week";
}*/

$wk = date("W");

$dateperiod = new DatePeriod($date, new DateInterval('P1D'), 6);

//$prev_wk = strtotime("-1 week");
//$next_wk = strtotime("+1 week");
//$_GET['agent_wk_cal_next'];
//print_r(intval($_GET['wk_cal_next']));

//$date->add(new DateInterval('P' . intval($_GET['wk_cal_next']) . + 1 . 'W'));

//print_r();

/*
if(isset($_GET['wk_cal_next'])) {
	$date->add(new DateInterval('P' . intval($_GET['wk_cal_next']) + 1 . 'W'));
	
} elseif(isset($_GET['wk_cal_prev'])) {
	$date->add(new DateInterval('P' . intval(($_GET['wk_cal_prev'] -1)) . 'W'));
} else {
	print "this is the current week";
}*/

/*
if(isset($_GET['agent_wk_cal_next']) == '?=wk') {
	//echo nothing
}*/

//$date->add(new DateInterval(""));
